home *** CD-ROM | disk | FTP | other *** search
- //------------------------------------------------------------
- // ADOBE SYSTEMS INCORPORATED
- // Copyright 2000-2002 Adobe Systems Incorporated
- // All Rights Reserved
- //
- // NOTICE: Adobe permits you to use, modify, and distribute
- // this file in accordance with the terms of the Adobe license
- // agreement accompanying it. If you have received this file
- // from a source other than Adobe, then your use, modification,
- // or distribution of it requires the prior written permission
- // of Adobe.
- //------------------------------------------------------------
-
- //------------------------------------------------------------
- // generalUtils.js
- //
- // This file contains general purpose functions.
- //
- // List of functions:
- //
- // fileDelimiter(): return current platform specific delimiter;
- // i.e., / for Windows and : for Macintosh.
-
-
-
- //-------------------------------
- // fileDelimiter - return platform specific delimiter
- //
- // For Macintosh, return :
- // For Windows, return \\
- // else return /
-
- function fileDelimiter()
- {
- var rtnVal = "";
-
- if (/^Windows/.exec(app.osVersion))
- {
- rtnVal = "\\";
- }
- else if (/^Macintosh/.exec(app.osVersion))
- {
- rtnVal = ":";
- }
- else
- { // unknown platform
- rtnVal = "/";
- }
- return rtnVal;
- }
-